package com.qut.atcoder.pojo;

import java.util.Arrays;

public class Question {
    private int id;
    private int question_type;
    private int difficulty;
    private String title;
    private String description;
    private int ac;
    private int wa;
    private String input_description;
    private String output_description;
    private String question_range;
    private String input_sample;
    private String output_sample;
    private int time_limit;
    private int memory_limit;
    private String[] input_test;// = new ArrayList<>();
    private String[] output_test;// = new ArrayList<>();
    private int is_exist;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getQuestion_type() {
        return question_type;
    }

    public void setQuestion_type(int question_type) {
        this.question_type = question_type;
    }

    public int getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(int difficulty) {
        this.difficulty = difficulty;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getAc() {
        return ac;
    }

    public void setAc(int ac) {
        this.ac = ac;
    }

    public int getWa() {
        return wa;
    }

    public void setWa(int wa) {
        this.wa = wa;
    }

    public String getInput_description() {
        return input_description;
    }

    public void setInput_description(String input_description) {
        this.input_description = input_description;
    }

    public String getOutput_description() {
        return output_description;
    }

    public void setOutput_description(String output_description) {
        this.output_description = output_description;
    }

    public String getQuestion_range() {
        return question_range;
    }

    public void setQuestion_range(String question_range) {
        this.question_range = question_range;
    }

    public String getInput_sample() {
        return input_sample;
    }

    public void setInput_sample(String input_sample) {
        this.input_sample = input_sample;
    }

    public String getOutput_sample() {
        return output_sample;
    }

    public void setOutput_sample(String output_sample) {
        this.output_sample = output_sample;
    }

    public int getTime_limit() {
        return time_limit;
    }

    public void setTime_limit(int time_limit) {
        this.time_limit = time_limit;
    }

    public int getMemory_limit() {
        return memory_limit;
    }

    public void setMemory_limit(int memory_limit) {
        this.memory_limit = memory_limit;
    }

    public String[] getInput_test() {
        return input_test;
    }

    public void setInput_test(String[] input_test) {
        this.input_test = input_test;
    }

    public void resizeInput_test(int n) {
        this.input_test = new String[n];
    }

    public String[] getOutput_test() {
        return output_test;
    }

    public void setOutput_test(String[] output_test) {
        this.output_test = output_test;
    }

    public void resizeOutput_test(int n) {
        this.output_test = new String[n];
    }

    public int getIs_exist() {
        return is_exist;
    }

    public void setIs_exist(int is_exist) {
        this.is_exist = is_exist;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", question_type=" + question_type +
                ", difficulty=" + difficulty +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", ac=" + ac +
                ", wa=" + wa +
                ", input_description='" + input_description + '\'' +
                ", output_description='" + output_description + '\'' +
                ", question_range='" + question_range + '\'' +
                ", input_sample='" + input_sample + '\'' +
                ", output_sample='" + output_sample + '\'' +
                ", time_limit=" + time_limit +
                ", memory_limit=" + memory_limit +
                ", input_test=" + Arrays.toString(input_test) +
                ", output_test=" + Arrays.toString(output_test) +
                ", is_exist=" + is_exist +
                '}';
    }
}
